15 #ifndef __SWIWWANCMAPI_H__
16 #define __SWIWWANCMAPI_H__
18 #ifdef GOBIAPI_EXPORTS
19 #define SWIIMPORT extern "C" __declspec( dllexport )
20 #else //GOBIAPI_EXPORTS
23 #define SWIIMPORT extern "C" __declspec( dllimport )
26 #define SWIIMPORT __declspec( dllimport )
28 #endif //GOBIAPI_EXPORTS
31 #define SWICALLBACK __stdcall
32 #define SWICMAPI __stdcall
60 typedef void (SWICALLBACK *
tFNPacketTotals)(ULONG totalPacketTX, ULONG totalPacketRX);
63 typedef void (SWICALLBACK * tFNNewNMEA)(LPCSTR pNMEA);
66 typedef void (SWICALLBACK * tFNNewNMEAPlus)(LPCSTR pNMEA, ULONG mode);
69 typedef void (SWICALLBACK * tFNSwiSignalStrengthInfo)(
105 typedef void (SWICALLBACK *
tFNEcio)(INT8 nEcio, ULONG nRadioIf);
127 typedef void (SWICALLBACK *
tFNSnir)(ULONG nSnir);
157 typedef void (SWICALLBACK *
tFNErrorRate)(ULONG nErrorRate, ULONG nRadioIf);
174 typedef void (SWICALLBACK *
tFNRsrq)(INT8 nRsrq, ULONG nRadioIf);
325 ULONG* pRouteInstances,
351 ULONG nRouteInstances,
380 ULONG * pGatewayAddress,
382 ULONG * pPrimaryDnsAddress,
383 ULONG * pSecondaryDnsAddress );
505 BYTE* pDestAddrLength,
507 BYTE* pTextMsgLength,
511 BOOLEAN* pRejectDuplicates,
512 BOOLEAN* pStatusReportReq,
514 BYTE* pValidityFormat,
515 BYTE validityPeriod[7],
516 BOOLEAN* pConcatenatedMsg,
518 BYTE* pTotalSegments,
619 BYTE* pSenderAddrLength,
621 BYTE* pTextMsgLength,
625 BOOLEAN* pMoreMsgSend,
627 BOOLEAN* pStatusReportInd,
629 BOOLEAN* pConcatenatedMsg,
631 BYTE* pTotalSegments,
775 BYTE* pSenderAddrLength,
777 BYTE* pTextMsgLength,
783 BYTE absoluteValidity[7],
784 BYTE* pRelativeValidity,
786 BOOL* pUserAcknowledgementReq,
787 BOOL* pReadAcknowledgementReq,
788 BYTE* pAlertPriority,
789 BYTE* pCallbkAddrLength = NULL,
790 CHAR* pCallbkAddr = NULL
921 BYTE* pMessageListSize,
928 BOOLEAN* pRejectDuplicates,
929 BOOLEAN* pStatusReportReq,
931 BYTE* pValidityFormat,
932 BYTE validityPeriod[7],
933 BYTE* pEncodingAlphabet);
1029 CHAR* pCallbackAddr,
1030 ULONG textMsgLength,
1033 BYTE* pEncodingAlphabet,
1034 BYTE* pRelValidity = NULL);
1066 ULONG * pMessageIndex,
1067 ULONG * pMessageTag,
1068 ULONG * pMessageMode );
1102 ULONG * pRequestedTag,
1103 ULONG * pMessageListSize,
1104 BYTE * pMessageList,
1105 ULONG * pMessageMode );
1145 ULONG * pMessageTag,
1146 ULONG * pMessageFormat,
1147 ULONG * pMessageSize,
1149 ULONG * pMessageMode );
1183 ULONG* pMessageMode );
1274 ULONG * pRegistrationState,
1278 BYTE * pRadioIfacesSize,
1279 BYTE * pRadioIfaces,
1303 SWIIMPORT ULONG SWICMAPI
GetWiFiState( ULONG * pState );
1372 #ifndef SWI_STRUCT_DEFINED
1402 #define SWI_STRUCT_DEFINED
1463 ULONG * pServerAddress,
1464 ULONG * pServerPort,
1487 ULONG serverAddress,
1582 UINT8 nSessionState );
1620 UINT8 fwAutoDownload,
1621 UINT8 fwAutoUpdate);
1640 UINT8 fwAutoUpdate );
1667 UINT16 UserInputTimeout,
1668 UINT32 FWDownloadSize,
1669 UINT32 FWDownloadComplete,
1670 UINT16 UpdateStatus,
1672 UINT16 VersionLength,
1676 UINT16 DescriptionLength,
1691 UINT16 UserInputTimeout,
1692 UINT16 AlertMsgLength,
1779 ULONG * pTechnology,
1780 ULONG * pPrimaryDNSv4,
1781 ULONG * pSecondaryDNSv4,
1782 ULONG * pPrimaryNBNSv4,
1783 ULONG * pSecondaryNBNSv4,
1784 ULONG * pPrimaryDNSv6,
1785 ULONG * pSecondaryDNSv6,
1787 ULONG * pIPAddressv4,
1788 ULONG * pIPAddressv6,
1789 ULONG * pAuthentication,
1793 ULONG * pFailureReason );
1812 ULONG * pIPAddressv4,
1813 USHORT * pIPAddressv6,
1814 BYTE * pIPv6prefixlen);
1817 typedef void (SWICALLBACK * tFNSwiCurrentDataBearer)(
1878 ULONG* pNetworkType,
1933 SWIIMPORT ULONG SWICMAPI
GetRfSarState( ULONG * pRfSarState );
2075 #endif // __SWIWWANCMAPI_H__
ULONG nTcpMaxDupAcks
Definition: SwiWwanCmApi.h:1394
ULONG nTcpWindowSize
Definition: SwiWwanCmApi.h:1380
SWIIMPORT ULONG SWICMAPI SwiOptimizeTcp(LPCTSTR lpstrInterfaceID, SWI_STRUCT_TcpOpt sTcpOpt)
This function is called to optimize Window's TCP stack to improve wireless transfer performance with ...
SWIIMPORT ULONG SWICMAPI WCDMADecodeMTTextMsg(BYTE *pMessage, BYTE *pSenderAddrLength, CHAR *pSenderAddr, BYTE *pTextMsgLength, WCHAR *pTextMsg, BYTE *pScAddrLength, CHAR *pScAddr, BOOLEAN *pMoreMsgSend, BOOLEAN *pReplyPath, BOOLEAN *pStatusReportInd, BYTE scTimeStamp[7], BOOLEAN *pConcatenatedMsg, ULONG *pMsgRefNum, BYTE *pTotalSegments, BYTE *pSegmentNum)
This function can be used to decode a received WCDMA SMS message read off the device using the GetSMS...
ULONG nTcpMaxConnectRetransmissions
Definition: SwiWwanCmApi.h:1400
SWIIMPORT ULONG SWICMAPI SWIOMADMGetSettings(UINT32 enabled, UINT8 fwAutoDownload, UINT8 fwAutoUpdate)
This function gets FOTA settings.
void(SWICALLBACK * tFNSwiDeviceRemoval)(ULONG nStatus)
Device removal callback function.
Definition: SwiWwanCmApi.h:186
void(SWICALLBACK * tFNPacketTotals)(ULONG totalPacketTX, ULONG totalPacketRX)
API Return Codes.
Definition: SwiWwanCmApi.h:60
SWIIMPORT ULONG SWICMAPI WCDMADecodeMOTextMsg(BYTE *pMessage, BYTE *pDestAddrLength, CHAR *pDestAdd, BYTE *pTextMsgLength, WCHAR *pTextMsg, BYTE *pScAddrLength, CHAR *pScAddr, BOOLEAN *pRejectDuplicates, BOOLEAN *pStatusReportReq, BOOLEAN *pReplyPath, BYTE *pValidityFormat, BYTE validityPeriod[7], BOOLEAN *pConcatenatedMsg, ULONG *pMsgRefNum, BYTE *pTotalSegments, BYTE *pSegmentNum)
This function can be used to decode a WCDMA draft message read from the device using GetSMS() API...
SWIIMPORT ULONG SWICMAPI SetRfSarState(ULONG RfSarState)
This function sets the specified RF SAR state.
SWIIMPORT ULONG SWICMAPI SwiGetServingNetwork(ULONG *pRegistrationState, ULONG *pCSDomain, ULONG *pPSDomain, ULONG *pRAN, BYTE *pRadioIfacesSize, BYTE *pRadioIfaces, ULONG *pRoaming, WORD *pMCC, WORD *pMNC, BYTE nameSize, CHAR *pName, WORD *pSID, WORD *pNID)
Gets information regarding the system that currently provides service to the device.
ULONG nTcpWindowSizeGlobalMax
Definition: SwiWwanCmApi.h:1386
SWIIMPORT ULONG SWICMAPI WCDMAEncodeMOTextMsg(BYTE *pMessageListSize, BYTE *pMessageList, BYTE messageRefNum, CHAR *pDestAddr, ULONG textMsgLength, WCHAR *pTextMsg, CHAR *pScAddr, BOOLEAN *pRejectDuplicates, BOOLEAN *pStatusReportReq, BOOLEAN *pReplyPath, BYTE *pValidityFormat, BYTE validityPeriod[7], BYTE *pEncodingAlphabet)
This function can be used to encode an outgoing WCDMA message. The the resulting message can be eithe...
void(SWICALLBACK * tFNSWIOMADMFota)(UINT8 SessionState, UINT8 UserInputReq, UINT16 UserInputTimeout, UINT32 FWDownloadSize, UINT32 FWDownloadComplete, UINT16 UpdateStatus, UINT8 Severity, UINT16 VersionLength, BYTE *Version, UINT16 NameLength, BYTE *PackageName, UINT16 DescriptionLength, BYTE *Description)
SWIOMA-DM network initiated FOTA callback function.
Definition: SwiWwanCmApi.h:1664
SWIIMPORT ULONG SWICMAPI SWIOMADMSessionGetInfo(UINT8 nSessionType, UINT8 nSessionState)
This function returns information related to the current (or previous if no session is active) SWIOMA...
SWIIMPORT ULONG SWICMAPI SetSWIOMADMFotaCallback(tFNSWIOMADMFota pCallback)
This function enables/disables the OMA-DM network initiated FOTA callback function.
SWIIMPORT ULONG SWICMAPI SwiGetTcpOpt(LPCTSTR lpstrInterfaceID, SWI_STRUCT_TcpOpt &sTcpOpt)
This function is called to retrieve the Window's TCP stack optimization values.
SWIIMPORT ULONG SWICMAPI LTEGetSMSList(ULONG storageType, ULONG *pRequestedTag, ULONG *pMessageListSize, BYTE *pMessageList, ULONG *pMessageMode)
This function returns the list of SMS messages stored on an LTE device.
SWIIMPORT ULONG SWICMAPI SwiGetCurrentDataBearerTechnology(ULONG *pNetworkType, ULONG *pRatMask, ULONG *pSoMask)
This function returns the current data bearer technology.
bool bSackOpts
Definition: SwiWwanCmApi.h:1390
SWIIMPORT ULONG SWICMAPI SwiGoDormant(void)
This command forces the device to drop the traffic channel. The channel may be reactivated the n...
void(SWICALLBACK * tFNErrorRate)(ULONG nErrorRate, ULONG nRadioIf)
Error rate callback function.
Definition: SwiWwanCmApi.h:157
SWIIMPORT ULONG SWICMAPI SWIOMADMSessionStart(ULONG sessionType)
This function starts an SWIOMA-DM session.
SWIIMPORT ULONG SWICMAPI SwiGetSignalStrengthInfo(INT8 *pCdmaRssi, ULONG *pCdmaEcio, INT8 *pHdrRssi, ULONG *pHdrEcio, ULONG *pHdrSinr, ULONG *pHdrIo, INT8 *pGsmRssi, INT8 *pWcdmaRssi, ULONG *pWcdmaEcio, INT8 *pLteRssi, INT8 *pLteRsrq, INT16 *pLteRsrp, UINT8 *pLteSnr)
This function returns information regarding the signal strength.
SWIIMPORT ULONG SWICMAPI GetRoutes(ULONG *pRouteInstances, BYTE *pRouteList)
This function queries the behavior used to route new MT messages to MSM memory storage and WMS client...
SWIIMPORT ULONG SWICMAPI GetIPAddressLTE(ULONG *pIPAddressv4, USHORT *pIPAddressv6, BYTE *pIPv6prefixlen)
This function returns the current packet data session IP address(es)
void(SWICALLBACK * tFNSWIOMADMAlert)(UINT8 SessionState, UINT8 UserInputReq, UINT16 UserInputTimeout, UINT16 AlertMsgLength, BYTE *AlertMsg)
SWIOMA-DM network initiated alert callback function.
Definition: SwiWwanCmApi.h:1688
SWIIMPORT ULONG SWICMAPI SetSWIOMADMAlertCallback(tFNSWIOMADMAlert pCallback)
This function enables/disables the OMA-DM network initiated alert callback function.
SWIIMPORT ULONG SWICMAPI LTEDeleteSMS(ULONG storageType, ULONG *pMessageIndex, ULONG *pMessageTag, ULONG *pMessageMode)
This function deletes one or more SMS messages from the device memory of an LTE device.
SWIIMPORT ULONG SWICMAPI SWIOMADMShutdownApi()
This function cleans up SWIOMA-DM resources.
SWIIMPORT ULONG SWICMAPI GetRfSarState(ULONG *pRfSarState)
This function gets the specified RF SAR state.
SWIIMPORT ULONG SWICMAPI LTEModifySMSStatus(ULONG storageType, ULONG messageIndex, ULONG messageTag, ULONG *pMessageMode)
This function modifies the status of an SMS message saved in storage on an LTE device.
SWIIMPORT ULONG SWICMAPI SWIOMADMSetEventReport()
This function set enables event reporting.
SWIIMPORT ULONG SWICMAPI SWIOMADMSelection(UINT8 UserInput)
This function sends the specified SWIOMA-DM selection for the current network initiated session...
void(SWICALLBACK * tFNSnir)(ULONG nSnir)
SNIR callback function.
Definition: SwiWwanCmApi.h:127
SWIIMPORT ULONG SWICMAPI SwiSetErrorRateCallback(tFNErrorRate pCallback)
This function enables/disables the error rate callback function.
SWIIMPORT ULONG SWICMAPI SwiSetEcioCallback(tFNEcio pCallback, BYTE nThreshold)
This function enables/disables the ECIO callback function.
SWIIMPORT ULONG SWICMAPI SwiSetSignalStrengthInfoCallback(tFNSwiSignalStrengthInfo pCallback)
This function enables/disables the signal strength info callback function.
void(SWICALLBACK * tFNRsrq)(INT8 nRsrq, ULONG nRadioIf)
RSRQ callback function.
Definition: SwiWwanCmApi.h:174
This structure contains TCP optimization parameters.
Definition: SwiWwanCmApi.h:1373
SWIIMPORT ULONG SWICMAPI SetWiFiState(ULONG state)
This function sets the WiFi positioning state.
SWIIMPORT ULONG SWICMAPI SwiSetDeviceRemovalCallback(tFNSwiDeviceRemoval pCallback)
This function enables/disables the device removal callback function.
SWIIMPORT ULONG SWICMAPI SwiSetRsrqCallback(tFNRsrq pCallback, BYTE nThreshold)
This function enables/disables the RSRQ callback function.
SWIIMPORT ULONG SWICMAPI GetIPConfiguration(ULONG *pIPAddress, ULONG *pGatewayAddress, ULONG *pSubnetMask, ULONG *pPrimaryDnsAddress, ULONG *pSecondaryDnsAddress)
This function returns IP configuration data for the current packet data session.
SWIIMPORT ULONG SWICMAPI SWIOMADMInitApi()
This function initializes the API for SWIOMA-DM functionality.
SWIIMPORT ULONG SWICMAPI LTEGetSMS(ULONG storageType, ULONG messageIndex, ULONG *pMessageTag, ULONG *pMessageFormat, ULONG *pMessageSize, BYTE *pMessage, ULONG *pMessageMode)
This function returns an SMS message from the device memory of an LTE device.
SWIIMPORT ULONG SWICMAPI SwiSetSnirCallback(tFNSnir pCallback, BYTE nThreshold)
This function enables/disables the SNIR callback function.
SWIIMPORT ULONG SWICMAPI CDMAEncodeMOTextMsg(BYTE *pMessageSize, BYTE *pMessage, BYTE messageId, CHAR *pDestAddr, CHAR *pCallbackAddr, ULONG textMsgLength, WCHAR *pTextMsg, BYTE *pPriority, BYTE *pEncodingAlphabet, BYTE *pRelValidity=NULL)
This function can be used to encode an outgoing CDMA message. The the resulting message can be either...
SWIIMPORT ULONG SWICMAPI SWIOMADMSessionCancel(UINT8 sessionType)
This function cancels an ongoing SWIOMA-DM session.
SWIIMPORT ULONG SWICMAPI SetRoutes(ULONG nRouteInstances, BYTE *pRouteList)
This function sets the routing action taken upon receipt of incoming the WMS message per message cate...
SWIIMPORT ULONG SWICMAPI SwiSetCurrentDataBearerCallback(tFNSwiCurrentDataBearer pCallback)
This function enables/disables the current data bearer status callback function.
SWIIMPORT ULONG SWICMAPI SWIOMADMSetSettings(UINT8 fwAutoLoad, UINT8 fwAutoUpdate)
This function sets FOTA settings.
SWIIMPORT ULONG SWICMAPI LTEGetAGPSConfig(ULONG *pServerAddress, ULONG *pServerPort, ULONG networkMode)
This function returns the configuration used by the MSM GPS to perform fixes while in 2 MS-Based mode...
SWIIMPORT ULONG SWICMAPI GetWiFiState(ULONG *pState)
This function returns the WiFi positioning state.
SWIIMPORT ULONG SWICMAPI SetNMEAPlusCallback(tFNNewNMEAPlus pCallback)
This function enables/disables the NMEA sentence plus mode callback function.
SWIIMPORT ULONG SWICMAPI StartDataSessionLTE(ULONG *pTechnology, ULONG *pPrimaryDNSv4, ULONG *pSecondaryDNSv4, ULONG *pPrimaryNBNSv4, ULONG *pSecondaryNBNSv4, ULONG *pPrimaryDNSv6, ULONG *pSecondaryDNSv6, CHAR *pAPNName, ULONG *pIPAddressv4, ULONG *pIPAddressv6, ULONG *pAuthentication, CHAR *pUsername, CHAR *pPassword, ULONG *pSessionId, ULONG *pFailureReason)
These functions activate a packet data session on an LTE device.
ULONG nTcpWindowSizeGlobal
Definition: SwiWwanCmApi.h:1383
SWIIMPORT ULONG SWICMAPI LTESetAGPSConfig(ULONG serverAddress, ULONG serverPort, ULONG networkMode)
This function sets the default configuration used by the MSM GPS to perform MS-based fixes...
SWIIMPORT ULONG SWICMAPI InvokeApiCrash(ULONG nCrashMethod)
This function instructs the API to generate a fatal exception.
SWIIMPORT ULONG SWICMAPI GetImageInfo3KW(WCHAR *pDeviceID, WCHAR *pDeviceKey, WCHAR *pFilePath, BYTE *pImageType, BYTE *pImageID, ULONG *pVersionID, USHORT versionSize, WCHAR *pVersion)
This function can be used to get image information (including Image ID,.
ULONG nTcp1323Opts
Definition: SwiWwanCmApi.h:1397
void(SWICALLBACK * tFNEcio)(INT8 nEcio, ULONG nRadioIf)
ECIO callback function.
Definition: SwiWwanCmApi.h:105
SWIIMPORT ULONG SWICMAPI CDMADecodeMTTextMsg(ULONG messageLength, BYTE *pMessage, ULONG *pMessageID, BYTE *pSenderAddrLength, CHAR *pSenderAddr, BYTE *pTextMsgLength, WCHAR *pTextMsg, BYTE *pPriority, BYTE *pPrivacy, BYTE *pLanguage, BYTE mcTimeStamp[7], BYTE absoluteValidity[7], BYTE *pRelativeValidity, BYTE *pDisplayMode, BOOL *pUserAcknowledgementReq, BOOL *pReadAcknowledgementReq, BYTE *pAlertPriority, BYTE *pCallbkAddrLength=NULL, CHAR *pCallbkAddr=NULL)
This function can be used to decode a received CDMA SMS message read off the device using the GetSMS(...
SWIIMPORT ULONG SWICMAPI SwiGetApn(BYTE nProfileType, BYTE nProfileIndex, BYTE nLength, CHAR *pApn)
This function gets the APN information from a configured profile.
SWIIMPORT ULONG SWICMAPI SwitchModemToBootMode()
This function switches the modem from application mode to boot & hold mode.